<!-- <script src="./common/iconfont/iconfont.js"></script> -->
<script>
// import iconfont from './common/iconfont/iconfont.js'
export default {
	onLaunch: function() {
		console.log('App Launch');
		// console.log(Vue, '>>>>>>>>>>>>>>>>>>>>')
		
		// tabbar 小提示
		// setTimeout(() => {
		// 	uni.setTabBarBadge({
		// 		index: 1,
		// 		text: '31'
		// 	});
		// 	uni.showTabBarRedDot({
		// 		index: 3
		// 	});
		// }, 1000);
		
		// 自定义头部导航栏的头部高度
		uni.getSystemInfo({
			success:function(e){  
				// #ifndef H5
				Vue.prototype.statusBar = e.statusBarHeight;
				// #endif
				
				// #ifndef MP || H5
				if(e.platform == 'android') {  
					Vue.prototype.customBar = e.statusBarHeight + 50;
				}else {  
					Vue.prototype.customBar = e.statusBarHeight + 45;
				}  
				// #endif  
	
				// #ifdef MP-WEIXIN  
				let custom = wx.getMenuButtonBoundingClientRect();  
				Vue.prototype.customBar = custom.bottom + custom.top - e.statusBarHeight;  
				// #endif  
	
				// #ifdef MP-ALIPAY  
				Vue.prototype.customBar = e.statusBarHeight + e.titleBarHeight;  
				// #endif  
			}  
		});
		
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style>
@import './static/iconfont/iconfont.css';
/*每个页面公共css */ 
* {
	box-sizing: border-box;
}
.icon {
  width: 50rpx;
  height: 50rpx;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>
